package com.ruoyi.danny.listener;

import org.springframework.stereotype.Component;

@Component("exceptionUtils")
public class ExceptionUtils {
    public void throwIf(boolean condition, String message) {
        //if (condition) {
            throw new BusinessException(message); // 使用自定义异常
        //}
    }
}